package com.aierkeji.call.b2c.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

import com.aierkeji.call.b2c.entity.AkjCallUser;

public class MyUserNamePasswordToken extends UsernamePasswordToken {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8756598516642575027L;
	private AkjCallUser akjAuser;

	public MyUserNamePasswordToken(AkjCallUser akjAuser, String password) {
		super(akjAuser.getAccount(), password);
		this.akjAuser = akjAuser;
	}

	public AkjCallUser getAkjAuser() {
		return akjAuser;
	}

	public Object getPrincipal() {
		return akjAuser;
	}

}
